package com.hzqy.persistence.dao.industry;


import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.AlertDataInfoVo;
import com.hzqy.web.vo.AlertInfoVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class AlertDataInfoDao extends PersistenceDao<AlertDataInfoVo, Integer> {

    public int insertAlertDataInfo(AlertDataInfoVo alertDataInfoVo){
        String namespace = this.getNamespace();
        return getSqlSession().insert(namespace + "insertAlertDataInfo", alertDataInfoVo);
    }
    public List<AlertDataInfoVo> selectAlertDataInfo(AlertDataInfoVo alertDataInfoVo){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectAlertDataInfo", alertDataInfoVo);
    }
    public List<AlertDataInfoVo> selectAlertDataInfoByPage(Map<String, Object> map){
        String namespace = this.getNamespace();
        return getSqlSession().selectList(namespace + "selectAlertDataInfoByPage", map);
    }
}
